import url from 'url';

const urlString = 'https://www.gogle.com/search?q=hello+world';
const url0bj = new URL(urlString);

// console.log(url0bj);
// console.log(url.format(url0bj));

// console.log(import.meta.utl);
// console.log(url.fileURLToPath(import.meta.url));

// console.log(url0bj.search);

const params = new URLSearchParams(url0bj.search);
console.log(params.get('q'));

params.append('limit','5');
params.delete('limit');
console.log(params);

